﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home/Layouts/Home.Master" AutoEventWireup="true" CodeBehind="NewsByCategory.aspx.cs" Inherits="Thuoc24h.Home.Pages.NewsByCategory" %>
    <%@Import namespace="Thuoc24h.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPLH" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPLH" runat="server">
     <h1 class="TopHeader">Chuyên mục: <asp:Literal runat="server" ID="ltrCate"></asp:Literal>
    </h1>
    <div id="LSNewsListWrapper">
        <div id="LSNewsListWrapperIn">
            <table width="100%" border="0">
                <tbody>

                    <asp:ListView runat="server" ID="lvNewsByCategory"  >
                        <ItemTemplate>
                            <tr>
                                <td colspan="2">
                                    <a class="LSNewsItemTile" href="/tin-tuc/chi-tiet/<%#Utils.BuildUrl(Eval("Title"),Eval("Id")) %>">
                                        <h2>
                                            <%# Eval("Title") %>
                                        </h2>
                                    </a>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" style="width: 130px;">
                                    <img class="LSNewsItemThumb" alt='<%# Eval("Title") %>'
                                        src='<%# Eval("ThumbImage") %>'>
                                </td>
                                <td valign="top" align="justify" style="color: #333">
                                    <%# Eval("Description") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <EmptyDataTemplate>
                            Không có bản ghi nào !
                        </EmptyDataTemplate>
                    </asp:ListView>


                </tbody>
            </table>
            <div class="Pager">
                 <asp:ListView runat="server" ID="listViewPager">
                    <ItemTemplate></ItemTemplate>
                </asp:ListView>
                <asp:DataPager runat="server" ID="pagerNews" PagedControlID="listViewPager"  QueryStringField="page" >
                    <Fields>
                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False" ShowPreviousPageButton="False" FirstPageText="Trang đầu"/>
                        <asp:NumericPagerField />
                        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False" ShowPreviousPageButton="False" LastPageText="Trang cuối" />
                    </Fields>
                </asp:DataPager>
            </div>
        </div>
        <%--<img src="/Themes/Images/bottom_shadow.png">--%>
    </div>
</asp:Content>
